package cn.lg.soar.database.base.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 实体基类
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public interface IBaseEntity extends Serializable {

    String CREATE_TIME = "create_time";
    String CREATE_BY = "create_by";
    String UPDATE_TIME = "update_time";
    String UPDATE_BY = "update_by";

    Serializable primaryKey();

    LocalDateTime getCreateTime();

    void setCreateTime(LocalDateTime createTime);

    Long getCreateBy();

    void setCreateBy(Long userId);

    LocalDateTime getUpdateTime();

    void setUpdateTime(LocalDateTime updateTime);

    Long getUpdateBy();

    void setUpdateBy(Long userId);

}
